<!DOCTYPE html>
<html lang="">
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= htmlWebpackPlugin.options.title %></title>
    <link rel="stylesheet" href="<%= BASE_URL %>index.css" />
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work
        properly without JavaScript enabled. Please enable it to
        continue.</strong
      >
    </noscript>
    <div class="page-loading" id="page-loading">
      <div class="shaft1"></div>
      <div class="shaft2"></div>
      <div class="shaft3"></div>
      <div class="shaft4"></div>
      <div class="shaft5"></div>
      <div class="shaft6"></div>
      <div class="shaft7"></div>
      <div class="shaft8"></div>
      <div class="shaft9"></div>
      <div class="shaft10"></div>
    </div>
    <div id="app"></div>
    <!-- built files will be auto injected -->
    <script lang="ts">
      if (isIE()) {
        alert(
          "很抱歉我们暂不支持ie浏览器，如果页面没有反应，请您安装目前市面上主流的浏览器进行更好的操作体验。"
        );
      }

      function isIE() {
        //ie?
        if (!!window.ActiveXObject || "ActiveXObject" in window) return true;
        else return false;
      }

      function setPageLoading() {
        if (document.readyState == "complete") {
          let elm = document.getElementById("page-loading");
          elm.style.display = "none";
        } //当页面加载状态
      }

      document.onreadystatechange = setPageLoading; //当页面加载状态改变的时候执行这个方法.
    </script>
  </body>
</html>
